<?php

defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');


?>


<form action="<?php echo JRoute::_('index.php?option=com_raovat&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="raovat-form" class="form-validate" enctype="multipart/form-data">
 
	<div class="row-fluid">
		<div class="span10 form-horizontal">

		<fieldset>
		<ul class="nav nav-tabs">
			<li class="active">
            	<a href="#details" data-toggle="tab">
					<?php echo empty($this->item->id) ? JText::_('New') : JText::sprintf('Edit', $this->item->id); ?></a>
            </li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane active" id="details">
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('title'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('title'); ?></div>
				</div>
                
                <div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('description'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('description'); ?></div>
				</div>
               
                <div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('category'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('category'); ?></div>
				</div>
               
                
                <div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('region'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('region'); ?></div>
				</div>
				
				<div class="control-group">
					
					<div class="control-label"><?php echo $this->form->getLabel('image'); ?></div>
					<div class="controls">
						<?php if ($this->item->image){?>
						<img width="150" src="../images/<?php echo $this->item->image?>" />
						<?php }?> <br />
						<?php echo $this->form->getInput('image'); ?>
					</div>
				</div>
				
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('contact'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('contact'); ?></div>
				</div>
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('email'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('email'); ?></div>
				</div>
				
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('show_email'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('show_email'); ?></div>
				</div>
				
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('address'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('address'); ?></div>
				</div>
				
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('phone'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('phone'); ?></div>
				</div>
                <div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('published'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('published'); ?></div>
				</div>
				
			</div>
			<input type="hidden" name="task" value="" />
			<?php echo JHtml::_('form.token'); ?>
		</div>
	</div>
		
		
</form>
